package com.example.testlxr9096.Dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.example.testlxr9096.bean.TestRecord;

import java.util.List;

@Dao
public interface TestRecordDao {
    @Insert
    void insert(TestRecord testRecord);

    @Query("SELECT * FROM TestRecord")
    List<TestRecord> getAllTestRecords();

    @Query("DELETE FROM TestRecord")
    void deleteAllTestRecords();
}
